package com.project.bean;

/**
 * 商品明细表实体类
 */
public class CommodityBean {
    /**订单明细编号*/
    private Integer coId;
    /**商品编号*/
    private String commId;
    /**数量*/
    private Integer coNum;
    /**所属订单*/
    private OrderBean orderBean;

    public CommodityBean() {
    }

    public CommodityBean(String commId, Integer coNum) {
        this.commId = commId;
        this.coNum = coNum;
    }

    public Integer getCoId() {
        return coId;
    }

    public void setCoId(Integer coId) {
        this.coId = coId;
    }

    public String getCommId() {
        return commId;
    }

    public void setCommId(String commId) {
        this.commId = commId;
    }

    public Integer getCoNum() {
        return coNum;
    }

    public void setCoNum(Integer coNum) {
        this.coNum = coNum;
    }

    public OrderBean getOrderBean() {
        return orderBean;
    }

    public void setOrderBean(OrderBean orderBean) {
        this.orderBean = orderBean;
    }

    @Override
    public String toString() {
        return "CommodityBean{" +
                "coId=" + coId +
                ", commId='" + commId + '\'' +
                ", coNum=" + coNum +
                ", orderBean=" + orderBean +
                "}\n";
    }
}
